package com.czk;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 定义配置文件
 *
 * @Author:ChenZhangKun
 * @Date: 2021/4/19 21:46
 */
@ConfigurationProperties(prefix = "com.nzq")
public class MyProperties {
    private String name;
    private String age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }
}
